package com.jingdianjichi.oss.adapter;

import com.jingdianjichi.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


public class AliStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucketName) throws Exception {

    }

    @Override
    public void uploadFile(MultipartFile multipartFile, String bucketName, String objectName) {

    }

    @Override
    public List<String> getAllBucket() {
        List<String> bucketNames = new ArrayList<>();
        bucketNames.add("alioss");
        return bucketNames;
    }

    @Override
    public List<FileInfo> getAllFile(String bucketName) {
        return Collections.emptyList();
    }

    @Override
    public InputStream downLoad(String bucketName, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucketName) {

    }

    @Override
    public void deleteFile(String bucketName, String objectName) {

    }
}
